COMPILER_PREFIX = 'arm-none-eabi-'
DEF_LINK = COMPILER_PREFIX + 'gcc'
DEF_AS = COMPILER_PREFIX + 'gcc'
DEF_GCC = COMPILER_PREFIX + 'gcc'
DEF_OBJCOPY = COMPILER_PREFIX + 'objcopy'
DEF_CFLAGS = [
    '-DUSE_STDPERIPH_DRIVER',
    '-DSTM32F429xx',
    '-mcpu=cortex-m4',
    '-Wall',
    '-mlittle-endian',
    '-mthumb',
    '-fdata-sections',
    '-ffunction-sections',
    '-mfpu=fpv4-sp-d16',
    '-mfloat-abi=softfp',
    '-g',
    '-Os',
    '-gdwarf-2',
    '-specs=nano.specs'
]

DEF_ASLAGS = [
    '-c',
    '-x',
    'assembler-with-cpp',
    '-g',
    '-Os',
    '-Wall',
    '-fdata-sections',
    '-ffunction-sections'
]

DEF_LINKFLAGS = [
    '-mcpu=cortex-m4',
    '-specs=nano.specs',
    '-Wl,--gc-sections'
]